{% extends "base.html" %}

{% block title %} pyutility:python实用工具 语法高亮 SyntaxHighlighter  {% endblock title %}

{% block header %}
 
<link type="text/css" rel="stylesheet" href="/css/shCore.css" />          
<link type="text/css" rel="stylesheet" href="/css/shThemeDefault.css" />  
<script type="text/javascript" src="/js/shCore.js"></script>
{{bushscript}}
<script type="text/javascript"> 
SyntaxHighlighter.all(); 
</script>

{% endblock header %}
 
{% block content %}

<div class="nav">
<a  href="/">返回首页</a> <a  href="/SyntaxHighlighter">重新输入</a>
</div>

<blockquote>
<h3>SyntaxHighlighter语法高亮 <a href="/SyntaxHighlighter-1.4/Index.html" target="_blank">SyntaxHighlighter-1.4</a></h3>

{% if input %}
<div id="inputcode">
	<form action="" method="post">
	<textarea name="code" rows="30" cols="80"></textarea>
	<select name="type">
	{% for type in SupportType%}
	<option value="{{ type }}">{{ type }}</option>
	{% endfor %}
	</select>
	<input type="submit" value="submit"> 
	</form>
</div>
{% else %}
<div id="result">
{{result}}
</div>
{% endif %}

</blockquote>

{% endblock content %}